<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template date_generator_parser</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../date_time/doxy.html#doxygen.date_time_reference.date__generator__parser_8hpp" title="Header &lt;boost/date_time/date_generator_parser.hpp&gt;">
<link rel="prev" href="classboost_1_1date__time_1_1date__generator__formatter.html" title="Class template date_generator_formatter">
<link rel="next" href="classboost_1_1date__time_1_1first__kday__after.html" title="Class template first_kday_after">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1date__time_1_1date__generator__formatter.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.date__generator__parser_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1first__kday__after.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template date_generator_parser</span></h2>
<p>boost::date_time::date_generator_parser — Class for date_generator parsing. </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../date_time/doxy.html#doxygen.date_time_reference.date__generator__parser_8hpp" title="Header &lt;boost/date_time/date_generator_parser.hpp&gt;">boost/date_time/date_generator_parser.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> date_type<span class="special">,</span> <span class="keyword">typename</span> charT<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html" title="Class template date_generator_parser">date_generator_parser</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>                <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a65f3d66906178597f72dd863dd11affc"></a><span class="identifier">string_type</span><span class="special">;</span>      
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">istreambuf_iterator</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>         <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a89be3f462474be31f791468b47919940"></a><span class="identifier">stream_itr_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">month_type</span>                     <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ae19ed9d41669c47f5769109a53e11550"></a><span class="identifier">month_type</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">day_of_week_type</span>               <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa9e7d196ac3d00ec9232223e4c5efa7c"></a><span class="identifier">day_of_week_type</span><span class="special">;</span> 
  <span class="keyword">typedef</span> <span class="identifier">date_type</span><span class="special">::</span><span class="identifier">day_type</span>                       <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a6b241622d48d9e54dfa04430eb4ad060"></a><span class="identifier">day_type</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <a class="link" href="structboost_1_1date__time_1_1string__parse__tree.html" title="Struct template string_parse_tree">string_parse_tree</a><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span>                <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a6e18b4790b17adcc7e2c8fd75cbe7867"></a><span class="identifier">parse_tree_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> parse_tree_type::parse_match_result_type  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a63d79a4e18523e4e884def253035d03e"></a><span class="identifier">match_results</span><span class="special">;</span>    
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special">&lt;</span> <span class="identifier">charT</span> <span class="special">&gt;</span> <span class="special">&gt;</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a2a5522758ebba95be58716bd5156764d"></a><span class="identifier">collection_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1partial__date.html" title="Class template partial_date">partial_date</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>                 <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a5d114f8c3882df9635a02f77f7c2772c"></a><span class="identifier">partial_date_type</span><span class="special">;</span>
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1nth__kday__of__month.html" title="Class template nth_kday_of_month">nth_kday_of_month</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>            <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a6ccee9d7ba566836fcc94525acd3d404"></a><span class="identifier">nth_kday_type</span><span class="special">;</span>    
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1first__kday__of__month.html" title="Class template first_kday_of_month">first_kday_of_month</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>          <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa092cbc6a95a478a1a4c33091704a0dc"></a><span class="identifier">first_kday_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1last__kday__of__month.html" title="Class template last_kday_of_month">last_kday_of_month</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>           <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a8990e921e4f4368261e822a766cae5d4"></a><span class="identifier">last_kday_type</span><span class="special">;</span>   
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1first__kday__after.html" title="Class template first_kday_after">first_kday_after</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>             <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1abc74481661141a018b4b3f7f4489caa2"></a><span class="identifier">kday_after_type</span><span class="special">;</span>  
  <span class="keyword">typedef</span> <a class="link" href="classboost_1_1date__time_1_1first__kday__before.html" title="Class template first_kday_before">first_kday_before</a><span class="special">&lt;</span> <span class="identifier">date_type</span> <span class="special">&gt;</span>            <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1add2a5943fc5ddf3f707b07852deb9216"></a><span class="identifier">kday_before_type</span><span class="special">;</span> 
  <span class="keyword">typedef</span> <span class="identifier">charT</span>                                     <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a4437a64546d5dd92ceb0bcc2df447589"></a><span class="identifier">char_type</span><span class="special">;</span>        

  <span class="keyword">enum</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798"></a>phrase_elements <span class="special">{</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798a905372352948dfcb3a61333fc0714a81"></a>first = 0, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798aeda38fb2342c8bf1ece35b7fd9f3790b"></a>second, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798a99c4f47928276293a70fcc605596f72e"></a>third, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798aac80f33032fcbea80820a9c586a4713a"></a>fourth, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798a921140e69e37a51ec8eaab2cfa02107b"></a>fifth, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798a1d705bf0e50ee5d2e3ce5cb6d8a35847"></a>last, 
                         <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798afa65d7a21279b399ddb0a89554fe4d96"></a>before, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798a4d119fe1b878650d701e5b9cf5603dd5"></a>after, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798a8e18b378d4255bb9c73386431615dd56"></a>of, <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ad2554b573c102addf8ae6544beed4798aeb647dffb4adbb91dc9f819857213b41"></a>number_of_phrase_elements <span class="special">}</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#id-1_3_11_15_3_18_1_1_1_29-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a3b9f67b27ff8127e10aeaaec0d7af020"><span class="identifier">date_generator_parser</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a8755ae749cd8accca44023e27d3fb45f"><span class="identifier">date_generator_parser</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a5237e04d6971b3ac12bf2e8b5cd8fbdc"><span class="identifier">element_strings</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa55921408d91f323c8d258fe4f895e65"><span class="identifier">element_strings</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">collection_type</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a5d114f8c3882df9635a02f77f7c2772c">partial_date_type</a> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a95a676cdbc76c27b94b5bfa49be39402"><span class="identifier">get_partial_date_type</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                          <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a6ccee9d7ba566836fcc94525acd3d404">nth_kday_type</a> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a1e8275274ddaef4b68512c02595b637e"><span class="identifier">get_nth_kday_type</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa092cbc6a95a478a1a4c33091704a0dc">first_kday_type</a> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1afb841e1e762cc1451da56664d3bc81e6"><span class="identifier">get_first_kday_type</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a8990e921e4f4368261e822a766cae5d4">last_kday_type</a> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ab0893389040f9ca9a076945ca465e716"><span class="identifier">get_last_kday_type</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1add2a5943fc5ddf3f707b07852deb9216">kday_before_type</a> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a06b96cb3c942d306d49389a0bc94d00e"><span class="identifier">get_kday_before_type</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                         <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1abc74481661141a018b4b3f7f4489caa2">kday_after_type</a> 
    <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ae3df0fc2dd13d34a4bc9fbd8b09e8ef3"><span class="identifier">get_kday_after_type</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span><span class="special">,</span> 
                        <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#id-1_3_11_15_3_18_1_1_1_30-bb">private member functions</a></span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa7775e339792cc4c8ebead2870094c99"><span class="identifier">extract_element</span></a><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span><span class="special">,</span> 
                       <span class="keyword">typename</span> <span class="identifier">date_generator_parser</span><span class="special">::</span><span class="identifier">phrase_elements</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">first_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">second_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">third_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">fourth_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">fifth_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">last_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">before_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">after_string</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">char_type</span> <span class="identifier">of_string</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.11.15.3.18.3.4"></a><h2>Description</h2>
<p>The elements of a date_generator "phrase" are parsed from the input stream in a particular order. All elements are required and the order in which they appear cannot change, however, the elements themselves can be changed. The default elements and their order are as follows:</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p><a class="link" href="classboost_1_1date__time_1_1partial__date.html" title="Class template partial_date">partial_date</a> =&gt; "dd Month"</p></li>
<li class="listitem"><p>nth_day_of_the_week_in_month =&gt; "nth weekday of month"</p></li>
<li class="listitem"><p>first_day_of_the_week_in_month =&gt; "first weekday of month"</p></li>
<li class="listitem"><p>last_day_of_the_week_in_month =&gt; "last weekday of month"</p></li>
<li class="listitem"><p>first_day_of_the_week_after =&gt; "weekday after"</p></li>
<li class="listitem"><p>first_day_of_the_week_before =&gt; "weekday before"</p></li>
</ul></div>
<p>
</p>
<p>Weekday and Month names and formats are handled via the <a class="link" href="classboost_1_1date__time_1_1date__input__facet.html" title="Class template date_input_facet">date_input_facet</a>. </p>
<div class="refsect2">
<a name="id-1.3.11.15.3.18.3.4.5"></a><h3>
<a name="id-1_3_11_15_3_18_1_1_1_29-bb"></a><code class="computeroutput">date_generator_parser</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a3b9f67b27ff8127e10aeaaec0d7af020"></a><span class="identifier">date_generator_parser</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>Creates a <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html" title="Class template date_generator_parser">date_generator_parser</a> with the default set of "element_strings". </li>
<li class="listitem">
<pre class="literallayout"><a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a8755ae749cd8accca44023e27d3fb45f"></a><span class="identifier">date_generator_parser</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> first_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> second_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> third_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> fourth_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> fifth_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> last_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> before_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> after_str<span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> of_str<span class="special">)</span><span class="special">;</span></pre>Creates a <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html" title="Class template date_generator_parser">date_generator_parser</a> using a user defined set of element strings. </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a5237e04d6971b3ac12bf2e8b5cd8fbdc"></a><span class="identifier">element_strings</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> first_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> second_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> third_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> fourth_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> fifth_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> last_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> before_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> after_str<span class="special">,</span> 
                     <span class="keyword">const</span> <span class="identifier">string_type</span> <span class="special">&amp;</span> of_str<span class="special">)</span><span class="special">;</span></pre>Replace strings that determine nth week for generator. </li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa55921408d91f323c8d258fe4f895e65"></a><span class="identifier">element_strings</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">collection_type</span> <span class="special">&amp;</span> col<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a5d114f8c3882df9635a02f77f7c2772c">partial_date_type</a> 
  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a95a676cdbc76c27b94b5bfa49be39402"></a><span class="identifier">get_partial_date_type</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                        <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> a_ios<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span> facet<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>returns <a class="link" href="classboost_1_1date__time_1_1partial__date.html" title="Class template partial_date">partial_date</a> parsed from stream </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a6ccee9d7ba566836fcc94525acd3d404">nth_kday_type</a> 
  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a1e8275274ddaef4b68512c02595b637e"></a><span class="identifier">get_nth_kday_type</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                    <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> a_ios<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span> facet<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>returns nth_kday_of_week parsed from stream </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa092cbc6a95a478a1a4c33091704a0dc">first_kday_type</a> 
  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1afb841e1e762cc1451da56664d3bc81e6"></a><span class="identifier">get_first_kday_type</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                      <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> a_ios<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span> facet<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>returns first_kday_of_week parsed from stream </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a8990e921e4f4368261e822a766cae5d4">last_kday_type</a> 
  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ab0893389040f9ca9a076945ca465e716"></a><span class="identifier">get_last_kday_type</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> a_ios<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span> facet<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>returns last_kday_of_week parsed from stream </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1add2a5943fc5ddf3f707b07852deb9216">kday_before_type</a> 
  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1a06b96cb3c942d306d49389a0bc94d00e"></a><span class="identifier">get_kday_before_type</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                       <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> a_ios<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span> facet<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>returns first_kday_of_week parsed from stream </li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> facet_type<span class="special">&gt;</span> 
  <a class="link" href="classboost_1_1date__time_1_1date__generator__parser.html#doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1abc74481661141a018b4b3f7f4489caa2">kday_after_type</a> 
  <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1ae3df0fc2dd13d34a4bc9fbd8b09e8ef3"></a><span class="identifier">get_kday_after_type</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                      <span class="identifier">std</span><span class="special">::</span><span class="identifier">ios_base</span> <span class="special">&amp;</span> a_ios<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">facet_type</span> <span class="special">&amp;</span> facet<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>returns first_kday_of_week parsed from stream </li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.11.15.3.18.3.4.6"></a><h3>
<a name="id-1_3_11_15_3_18_1_1_1_30-bb"></a><code class="computeroutput">date_generator_parser</code> private member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.date_time_reference.classboost_1_1date__time_1_1date__generator__parser_1aa7775e339792cc4c8ebead2870094c99"></a><span class="identifier">extract_element</span><span class="special">(</span><span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> sitr<span class="special">,</span> <span class="identifier">stream_itr_type</span> <span class="special">&amp;</span> stream_end<span class="special">,</span> 
                     <span class="keyword">typename</span> <span class="identifier">date_generator_parser</span><span class="special">::</span><span class="identifier">phrase_elements</span> ele<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>Extracts phrase element from input. Throws ios_base::failure on error. </li></ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2001-2005 CrystalClear Software, Inc<p>Subject to the Boost Software License, Version 1.0. (See accompanying file
    <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1date__time_1_1date__generator__formatter.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../date_time/doxy.html#doxygen.date_time_reference.date__generator__parser_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="classboost_1_1date__time_1_1first__kday__after.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
